package com.ch.clinking.Dao;

import androidx.room.Dao;
import androidx.room.Delete;
import androidx.room.Insert;
import androidx.room.Query;
import androidx.room.Update;
import com.ch.clinking.bean.Merchandise;
import java.util.List;

@Dao
public interface MerchandiseDao {
    @Insert
    void insert(Merchandise... merchandises);

    @Delete
    void delete(Merchandise... merchandises);

    @Update
    int update(Merchandise... merchandises);

    @Query("SELECT * FROM Merchandise WHERE ShopId = :shopId")
    List<Merchandise> selectByShopId(String shopId);
}
